package com.booter.ws.es.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * {"mappings":{"properties":{"id":{"type":"long"},"dataTime":{"type":"integer"},"createTime":{"type":"long"},"updateTime":{"type":"long"},"title":{"type":"text","analyzer":"ik_max_word"},"title":{"type":"completion","analyzer":"ik_max_word"},"publish":{"type":"keyword"},"date":{"type":"date","format":"yyyy-MM-dd"}}},"aliases":{"e_book":{"is_write_index":false}}}
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book extends BaseEsModel {
    private static final long serialVersionUID = -4002924004439899983L;
    private String title;
    private String desc;
    private String publish;
    private String date;

    @Override
    public String idx() {
        return "idx_es_book";
    }
}